﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework
{
    internal class homework_2_1
    {
       
            static void Find(int[] arr)
            {
                int max = arr.Max();
                int min = arr.Min();
                double avg = arr.Average();
                int sum = 0;
                for (int i = 0; i < arr.Length; i++)
                {
                    sum += arr[i];
                }
                Console.WriteLine(max);
                Console.WriteLine(min);
                Console.WriteLine(avg);
                Console.WriteLine(sum);
            }
     
    }
}
